function createPage(url, title) {
	_setDomain();
	parent.$('#tabs').tabs('close', title);
	parent.$('#tabs').tabs('add', {
		title : title,
		content : createFrame(url),
		closable : true,
		icon : 'icon icon-sys'
	});

}

function createDsfPage(url, tranType, param, title) {
		if (tranType == '201' || tranType == '211' || tranType == '111'
				|| tranType == '101') {
			url = url + '/ds_paybill.do?method=list&'+param;
			title='代收交易明细查询';
		} else {
			url = url + '/df_paybill.do?method=list&'+param;
			title='代付交易明细查询';
		}
	_setDomain();
	parent.$('#tabs').tabs('close', title);
	parent.$('#tabs').tabs('add', {
		title : title,
		content : createFrame(url),
		closable : true,
		icon : 'icon icon-sys'
	});

}

function createFrame(url) {
	var s = '<iframe scrolling="auto" frameborder="0"  src="' + url
			+ '" style="width:100%;height:100%;"></iframe>';
	return s;
}
function createPageRouter() {
	parent.$('#tabs').tabs('close', "代收付路由模版使用");
	parent.$('#tabs').tabs('add', {
		title : "代收付路由模版使用",
		content : createFrame(BASE_PATH + 'tranRouterMapping.do?method=list'),
		closable : true,
		icon : 'icon icon-sys'
	});
}
function createPageFee() {
	parent.$('#tabs').tabs('close', "计费方法定义");
	parent.$('#tabs').tabs('add', {
		title : "计费方法定义",
		content : createFrame(BASE_PATH + 'feeMethod.do?method=list'),
		closable : true,
		icon : 'icon icon-sys'
	});
}
function createPageSubjectLog(SUBJECTCODE, today, CURRENCY) {
	parent.$('#tabs').tabs('close', "账户科目日志-明细");
	parent.$('#tabs').tabs(
			'add',
			{
				title : "账户科目日志-明细",
				content : createFrame(BASE_PATH
						+ 'subjectlog.do?method=relist&subjectCode='
						+ SUBJECTCODE + '&startTime=' + today + '&endTime='
						+ today + '&currency=' + CURRENCY),
				closable : true,
				icon : 'icon icon-sys'
			});
}
function createPageSubjectLog2(paysn, accountdate) {
	parent.$('#tabs').tabs('close', "账户科目日志-不平帐");
	parent.$('#tabs').tabs(
			'add',
			{
				title : "账户科目日志-不平帐",
				content : createFrame(BASE_PATH
						+ 'subjectlog.do?method=relist&paysn=' + paysn
						+ "&startTime=" + accountdate + "&endTime="
						+ accountdate),
				closable : true,
				icon : 'icon icon-sys'
			});
}
function createUpdpwd() {
	parent.$('#tabs').tabs('close', "修改密码");
	parent.$('#tabs').tabs('add', {
		title : "修改密码",
		content : createFrame(BASE_PATH + 'user.do?method=loadpsw'),
		closable : true,
		icon : 'icon icon-sys'
	});
}
function createUpddata() {
	parent.$('#tabs').tabs('close', "修改资料");
	parent.$('#tabs').tabs('add', {
		title : "修改资料",
		content : createFrame(BASE_PATH + 'user.do?method=loaddata'),
		closable : true,
		icon : 'icon icon-sys'
	});
}